<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="UTF-8">
    <link href="/static/devtools30/layui/css/layui.css" rel="stylesheet" />
    <link href="/static/devtools30/css/devindexbase.css" rel="stylesheet" />
    <script src="/static/devtools30/js/jquery-1.11.2.min.js" type="text/javascript"></script>
    <script src="/static/devtools30/layui/layui.all.js" type="text/javascript"></script>
    <script src="/static/devtools30/js/devtoolCommon.js" type="text/javascript"></script>
    <script src="/static/devtools30/layui-v2.5.6/dlcommon.js" type="text/javascript"></script>

    <title></title>
</head>
<style>
    .soul-bottom-contion {
        height: 31px;
        /*line-height: 29px;*/
        border-top: solid 1px #e6e6e6;
        display:none;
    }
    .soul-bottom-contion .condition-items {
        display: inline-block;
        width: calc(100vw - 100px);
        height: 30px;
        float: left;
        overflow: hidden;
        white-space: nowrap;
        display:none;
    }
    .buttonclass{
        width:68px;height:24px;background:rgba(64,190,191,1);border-radius:2px;line-height: 24px;
    }
    .layui-inline{
        width: 10px;
    }

    .layui-btn-primary1 {
        border: 0px solid #C9C9C9;
        color: #0066CC;
        background-color: transparent;
        /*background: #ffffff;*/
    }
    .layui-btn:hover {
        color: black;
    }
    .layui-select{
        height: 24px;
        width: 120px;
    }
    .layui-btn, .layui-input, .layui-select, .layui-textarea, .layui-upload-button {
        -webkit-appearance: button
    }
    .layui-input{
        height: 32px;
    }
</style>
<body>
<div class="fapz-content">

    <input type="hidden" name="id" id="id" th:value="${id}" />





    <div class="fp-table" style="width: 99%;">
        <table id="lefttable" lay-filter="lefttable"></table>
    </div>


</div>

<script type="text/javascript" >
    var h = document.body.clientHeight
    var w = document.body.clientWidth;




    layui.config({
        base: '/static/layui-v2.5.6/ext/',// 第三方模块所在目录
        version: 'v1.5.10' // 插件版本号
    });
    layui.use(["form","table",'laypage','layer','laydate'],function(){
        $=layui.jquery
        form=layui.form;




        renderlefttable()

        seachBtnLeft()


    })


    function seachBtnLeft() {
        var postdata={}
        postdata.id=$("#id").val()
        dLong.post("/DevtExcelImportController/readExcelList",postdata,function(data){
            if (data.success) {
                renderlefttable(data.dataList,data.headList)
            }
        },true);
    }



    function renderlefttable(data,headlist) {

        var table = layui.table;
        //第2个实例
        table.render({
            elem: '#lefttable',
            height: h*0.97,
            // width: 7* CLIENTWIDTH / 10,
            size: 'sm',
            page: true,

            cols: [
                headlist?headlist:[]
            ],
            data: data? data : []
        });
    }


</script>
</body>
</html>
